import {getCollectInfo } from "../../api/collect.js";

Page({
    data: {
        userinfo: {},
        collectNums: 0
    },

    onShow:async function() {
        const userinfo = wx.getStorageSync('userinfo');
        const userid = wx.getStorageSync('userid');
        if(userid){
            const collect =await getCollectInfo (userid);
            var collectNums=collect.length
        }
        this.setData({
            userinfo,
            collectNums
        })
    },
})